import request from '@/utils/request'
// 获取面经数据
export const interviewData = (params) => {
  return request({
    url: '/admin/interview/query',
    method: 'get',
    params: params
  })
}
// 创建面经数据
export const createInterview = ({ title: stem, content }) => {
  return request({
    url: '/admin/interview/create',
    method: 'post',
    data: {
      stem,
      content
    }
  })
}
// 删除面经数据
export const deleteInterview = (id) => {
  return request({
    url: '/admin/interview/remove',
    method: 'delete',
    data: id
  })
}
// 获取单个面经详情
export const getInterviewDetail = (id) => {
  return request({
    url: '/admin/interview/show',
    method: 'get',
    params: id
  })
}
